// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import {
	https,
	song
} from './utils/https.js'
import uView from '@/uni_modules/uview-ui'


import hostData from "./utils/config.js"
Vue.prototype.$hostImg = hostData.hostImg //挂载全局属性
Vue.prototype.$localhost = hostData.localhost


Vue.config.productionTip = false
Vue.prototype.$http = https
Vue.prototype.$song = song
Vue.prototype.$formalUrl = hostData.localhost
Vue.use(uView)


App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()

//去除正式环境的console.log
if (!(process.env.NODE_ENV !== 'production')) {
	console.log = () => {}
}
// #endif



// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif